<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>2350300097 万朗</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    String teacherName=request.getParameter("teacherName");
    String className=request.getParameter("className");
    String courseNum=request.getParameter("courseNum");
    String studentNum=request.getParameter("studentNum");

    session.setAttribute("teacherName", teacherName);
    session.setAttribute("className", className);
    session.setAttribute("courseNum", courseNum);
    session.setAttribute("studentNum", studentNum);

    int cn=Integer.parseInt(courseNum);
%>
<p align="center"><strong><font size="5">请输入科目数</font></strong></p>
<hr align="center" width="600">
<p align="center">
    <strong>
        老师姓名：<%=teacherName %>&nbsp;&nbsp;
        班级名称：<%=className %>&nbsp;&nbsp;
        学生人数：<%=studentNum %>&nbsp;&nbsp;
        科目数：<%=courseNum %>
    </strong>
</p>
<form name="form1" method="post" action="j3.jsp">
    <table width="400" border="1" align="center" cellpadding="2" cellspacing="0">
        <%for(int i=0;i<cn;i++){ %>
        <tr>
            <td align="center">科目<font color="#FF0000"><%=i+1 %></font></td>
            <td><input name="<%= "courseName["+i+"]" %>" type="text" id="courseName"></td>
        </tr>
        <%} %>
    </table>

    <p align="center">
        <input type="submit" name="Submit" value="提交">
        <input type="reset" name="Submit2" value="重置">
    </p>
</form>
<p>&nbsp;</p>
</body>
</html>